package com.qys.livesMall.finance.mapper;

import com.qys.livesMall.finance.model.dto.AccountDetailSearch;
import com.qys.livesMall.finance.model.dto.AccountInOut;
import com.qys.livesMall.finance.model.dto.user.UserInfoTeamIncomeDTO;
import com.qys.livesMall.finance.model.entity.shop.FinanceShopAccountDetail;
import com.qys.livesMall.finance.model.entity.shop.FinanceShopEarnestMoneyAccountDetail;
import com.qys.livesMall.framework.mapper.QysBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 店铺余额明细 Mapper 接口
 * </p>
 *
 * @author
 * @since 2023-06-06
 */
@Mapper
public interface FinanceShopEarnestMoneyAccountDetailMapper extends QysBaseMapper<FinanceShopEarnestMoneyAccountDetail, AccountDetailSearch> {

    AccountInOut sum(@Param("search") AccountDetailSearch search);

    List<FinanceShopEarnestMoneyAccountDetail> getShopListIncome(@Param("dto") UserInfoTeamIncomeDTO dto);

    BigDecimal getCumulativeIncome(@Param("ids") List<String> ids,@Param("codes") List<String> codes,@Param("type") Integer type);
}
